﻿using System.Collections.Generic;
using Model;

namespace IDAL
{
    /// <summary>
    /// 分类接口
    /// </summary>
    public interface ICategoryDAL
    {
        //增加分类
        void saveCategory(Category category);

        //删除分类
        void delCategory(Category category);

        //修改分类
        void updateCategory(Category category);

        //得到分类by ID
        Category getCategory(int id);

        //得到分类by EnglishName
        Category getCategory(string categoryName);

        //得到分类by chineseName
        Category getCategoryByChineseName(string chineseName);

        //得到分类by order
        Category getCategoryByOrder(int categoryOrder);

        //得到分类 ALL order by categoryOrder
        IList<Category> getCategory();
    }
}
